<template>
	<button
		class="pt-4 pb-10 text-blue-600"
    :class="[showCommentBox ? 'pb-2' : 'pb-10']"
		@click="showCommentBox = !showCommentBox"
	>
		回复
	</button>
	<CommentBox class="mb-4" v-if="showCommentBox" @submit="emit1('submit', $event);showCommentBox = false;" />
</template>

<script setup>
import CommentBox from './CommentBox.vue'
import { ref } from 'vue'

// 控制回复表单是否显示
const showCommentBox = ref(false)

const emit1 = defineEmits(["submit"]);
</script>

<style></style>
